<?php
	namespace Admin\Controller;
	use Think\Controller;
	use Think\Auth;
	class BaseController extends Controller{
		function _initialize(){
			if (!isset($_COOKIE['adminid'])) {
				  $this->redirect('Admin/Login/login');
				  exit();
			}
/*$AUTH = new Auth();
if(!$AUTH->check(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME,$_COOKIE['adminid'])){
    echo '<script>location.href="'.U('Admin/Login/quanxian').'"</script>';
}*/
}
	}